﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Orange.Mvc4App.Models {
    public class Module {
        [Key]
        [Column("Id")]
        [Required(ErrorMessage = "*")]
        public int Id { get; set; }

        [Column("Title"), MaxLength(20, ErrorMessage = "输入过长")]
        [Required(ErrorMessage = "*")]
        public string Title { get; set; }

        [Column("Action"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Action { get; set; }

        [Column("Controller"), MaxLength(20, ErrorMessage = "输入过长")]
        public string Controller { get; set; }

        [Column("BelongTo")]
        public int? BelongTo { get; set; }

    }
}
